﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Transactions;

namespace ZFY.UnitOfWork
{
    public class UnitOfWorkOption
    {
        public bool ThrowWhenExpection { get; set; } = true;
        public System.Data.IsolationLevel? IsolationLevel { get; set; }
        /// <summary>
        /// Milliseconds
        /// </summary>
        public int? Timeout { get; set; }
        public TransactionScopeOption Scope { get; set; } = TransactionScopeOption.Required;
    }
}
